package com.pat.web;

import com.jfinal.kit.PropKit;

public class ApiResponse {

	
	private String statusCode;
	
	private Object data;
	
	private String errorMessage;

	public String getStatusCode() {
		return statusCode;
	}

	public void setStatusCode(String statusCode) {
		this.statusCode = statusCode;
		if(statusCode!=null && !statusCode.equals("0000")){
			errorMessage = PropKit.get(statusCode);
		}
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

	public String getErrorMessage() {
		return errorMessage;
	}

	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}
	
}
